package com.jinke.api.modules.app.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum ReplyType {


    ASK(1, "提问"),
    REPLY(2, "回复"),
    ;

    @EnumValue
    private final int value;
    private final String desc;

    ReplyType(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @JsonValue
    public int getValue() {
        return this.value;
    }
}